<!doctype html>
<html>
{include file="head.html"}

<body>
  <script src="{$skins}js/jquery.blocksit.min.js"></script>
<div class="fullscreen">
  <div class="scroll_content">
    <div class="topfixed">
      <div class="t_left"><a href="/index.php?m=cyitem"><i class="back"></i></a></div>
      <div class="t_main">{$data.title}</div>
 
    </div>
    <div class="paddingheight"></div>
    <div class="project_show_img"> <img src="{$data.imgurl|images_site}" class="img"> 
    
 
    </div>
    <div>
    	{if $ssuser}
    {get data=t model=cyitem_join fun=selectRow(" cyid=$data[id] AND userid=$ssuser.userid  ")}
    {/if}
    <a href="/index.php?m=cyitem&a=join&cyid={$data.id}" class="btn">{if $t}已加入{else}我要加入{/if}</a> 
    
    <span class="zanbox"><a href="javascript:;" did="{$data.id}" id="btn-love"><i class="zan"></i>{$data.love_num}</a></span> 
    </div>
    <div class="comblock">
    项目介绍：
    </div>
    <div class="comblock">
    {$data.content}
    </div>
    {get data=users model=cyitem fun=getUserList("$data.id")}
    <div class="comblock">
    	加入用户
    </div>
     <div class="comblock">
    	{foreach item=c from=$users}
        <div>{$c.nickname}</div>
        {foreachelse}
        <div>暂无</div>
        {/foreach}
    </div>
    
  </div>
</div>
 <script>
 $(function(){
	 
	
	$("#btn-love").click(function(){
		var obj=$(this); 
		$.get("/index.php?m=love&a=add&ajax=1&tablename=cyitem&object_id="+$(this).attr("did"),function(data){
			if(data.error){
				skyToast("已赞了");
			}else{
				skyToast("加入成功");
			}
		},"json")
	});
 });
 </script>
 {include file="footer.html"} 
</body>
</html>
